﻿namespace BlamanticUI.Components;

/// <summary>
/// Represents a container including <see cref="AccordionItem"/> component to collapse or expand.
/// </summary>
[CssClass("accordion")]
public class Accordion : BlazorParentComponentBase<Accordion, AccordionItem>, IHasUIComponent, IHasFluid, IHasInverted,IHasChildContent
{
    /// <summary>
    /// Initializes a new instance of the <see cref="Accordion"/> class.
    /// </summary>
    public Accordion()
    {
    }

    /// <summary>
    /// Gets or sets a value indicating whether this <see cref="Accordion"/> is styled.
    /// </summary>
    [Parameter] [CssClass("styled")] public bool Styled { get; set; }
    /// <summary>
    /// Gets or sets a value indicating whether adapted inverted background by parent component.
    /// </summary>
    /// <value>
    ///   <c>true</c> if adapted; otherwise, <c>false</c>.
    /// </value>
    [Parameter] public bool Inverted { get; set; }
    /// <summary>
    /// Gets or sets a value indicating whether this is fluid.
    /// </summary>
    /// <value>
    ///   <c>true</c> if fluid; otherwise, <c>false</c>.
    /// </value>
    [Parameter] public bool Fluid { get; set; }
    /// <summary>
    /// A segment of UI content to render.
    /// </summary>
    [Parameter]public RenderFragment? ChildContent { get; set; }
}
